package board;

public class Square {
private int x;
private int y;

public Square(){
	
}

public Square(int initialX,int initialY){
	x=initialX;
	y=initialY;
}
public int GetX(){
	return x;
}

public void SetX(int newx){
	if ((newx>=0) && (newx<=4)){
		x=newx;
	}else{
		
	}
}

public int GetY(){
	return y;
}

public void SetY(int newy){
	if ((newy>=0) && (newy<=5)){
		y=newy;
	}else{
		
	}
}

public void SetSquare(int newx,int newy){
	if ((newx>=0) && (newx<=4)){
		if ((newy>=0) && (newy<=5)){
			y=newy;
		}else{
			
		}
		x=newx;
	}else{
		
	}
}

}
